<template>
    <div>
        count:{{ count }} <button @click="changeNum">按钮</button>
    </div>
</template>

<script setup lang="ts">
        import {ref} from "vue"
       let count= ref(2)
       function changeNum(){
            count.value+=2
       }
</script>

<style scoped>

</style>